<h2>Affiliates List</h2>
<table style="Border:3px solid #ADADAD;">
	<tr>
		<th>Affiliate</th>
		<th>Current Rip</th>
		<th># Orders</th>
		<th>Commissionable</th>
		<th># Payments</th>
		<th>Total Paid</th>
	</tr>
{foreach from=$affiliates item=affiliate}
	<tr style="background:{cycle values="#EFEFEF,#FFFFFF"}">
		<td><a href="index.php?page=afEdit&id={$affiliate.id}">{$affiliate.name}</a></td>
		<td align="center">{$affiliate.rip}</td>
		<td align="right">{$affiliate.orders}</td>
		<td align="right">{$affiliate.balance} / {$affiliate.commission}</td>
		<td align="right">{$affiliate.payments}</td>
		<td align="right">{$affiliate.paid}</td>
	</tr>
{/foreach}
	<tr>
		<td colspan="6" style="border-bottom:1px solid black"></td>
	</tr>
	<tr style="background:#CDCDCD">
		<td align="right" colspan="2"><B>Totals</b></td>
		<td align="right">{$totals.orders}</td>
		<td align="right">{$totals.balance} / {$totals.commission}</td>
		<td></td>
		<td align="right">{$totals.payouts}</td>
	</tr>
</table>
<Br />
<Br />
		
